export interface Task {
  task_id: number
  user_id: number
  group_id: number
  group_name: string
  title: string
  description: string
  is_important: boolean
  is_my_day: boolean
  status: 0 | 1 | 2 // 0: 新任务, 1: 进行中, 2: 已完成
  due_date: string
  created_at: string
  updated_at: string
}

export interface TaskCreatePayload {
  group_id: number
  title: string
  description?: string
  is_important?: boolean
  is_my_day?: boolean
  due_date?: string
}

export interface TaskUpdatePayload {
  group_id?: number
  title?: string
  description?: string
  is_important?: boolean
  is_my_day?: boolean
  status?: 0 | 1 | 2
  due_date?: string
}

export interface TaskLog {
  log_id: number
  task_id: number
  content: string
  created_at: string
}